Skip to content

Correctly check content type #114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 4, 2022

Conversation

jschlyter
Copy link
Collaborator

Current we log a warning if we receive Content-Type: application/json; charset=utf-8, but want application/json. This PR fixes this.

N.B. a charset option for JSON content is moot, since only utf8 may be used.

@jschlyter jschlyter requested a review from rohe March 4, 2022 07:43
@codecov-commenter
Copy link

codecov-commenter commented Mar 4, 2022

Codecov Report

Merging #114 (8ef4566) into main (366d889) will decrease coverage by 0.16%.
The diff coverage is 93.02%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #114      +/-   ##
==========================================
- Coverage   77.59%   77.42%   -0.17%     
==========================================
  Files          41       41              
  Lines        4342     4328      -14     
  Branches      841      838       -3     
==========================================
- Hits         3369     3351      -18     
- Misses        709      712       +3     
- Partials      264      265       +1     
Impacted Files Coverage Δ
src/cryptojwt/key_bundle.py 79.20% <92.30%> (-0.66%) ⬇️
src/cryptojwt/utils.py 82.31% <100.00%> (+0.49%) ⬆️
src/cryptojwt/key_issuer.py 80.25% <0.00%> (-0.95%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3318c89...8ef4566. Read the comment docs.

@jschlyter jschlyter merged commit 633118d into IdentityPython:main Mar 4, 2022
@jschlyter jschlyter deleted the check_content_type branch March 4, 2022 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants